<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>'readercenter.jsp'</title>

<style type="text/css">
#body {
	clear: both;
	width: 100%;
	border: 1px solid red;
	text-align: center;
	margin: 0;;
}

#left {
	background: #99FF99;
	width: 25%;
	float: left;
}

#right {
	background: #99cc99;
	width: 75%;
	float: left;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style-type: none;
	border: 1px solid;
}
#detailinfo{ display:none;}
</style>

<script>
function getinfo(){
var infodiv = document.getElementById("detailinfo");
var rightdiv = document.getElementById("right");
rightdiv.innerHTML=infodiv.innerHTML;
}
function getWorks(){
var url ="${pageContext.request.contextPath }/author/AuthorMgNovel";
toDoXHR(url,'POST','','right');
}
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/JS/toDoXHR.js"></script></head>

<body>
	<div align="center">

		<a href="${pageContext.request.contextPath }">首 页</a> <br />
		<c:if test="${whologin!=null and whologin.status eq '1'}">
		欢迎作者---${whologin.nickname }
		</c:if>
	</div>
	<div id="body">
		<div id="left">
			<ul>
				<li><a
					href="#" onclick="getWorks()">作品管理</a>
				</li>
				<li ><a href="#" onclick="getinfo()">个人信息</a></li>
			</ul>
		</div>
		<div id="right">点击左边来选择相应操作</div>
	</div>
	<!-- 隐藏起来的账号信息 -->
	<div id="detailinfo">
		<c:if test="${whologin!=null }">
			<div align="center">
				<table>
					<tr>
						<td colspan="2">用户信息</td>
					</tr>
					
					<tr>
						<td>用户名：</td>
						<td>${whologin.username }</td>
					</tr>
					<tr>
						<td>昵称：</td>
						<td>${whologin.nickname }</td>
					</tr>
					<tr>
						<td>生日:</td>
						<td>${whologin.birthday }</td>
					</tr>
				</table>
			</div>
		</c:if>
	</div>
</body>
</html>
